Romans 4:3-6

4:3 For what does the scripture say? “Abraham believed God, and it was credited to him as righteousness.” 4:4 Now to the one who works, his pay is not credited due to grace but due to obligation. 4:5 But to the one who does not work, but believes in the one who declares the ungodly righteous, his faith is credited as righteousness.

4:6 So even David himself speaks regarding the blessedness of the man to whom God credits righteousness apart from works:

Romans 4:8-11

4:8 blessed is the one against whom the Lord will never count sin.

4:9 Is this blessedness then for the circumcision or also for the uncircumcision? For we say, “faith was credited to Abraham as righteousness.” 4:10 How then was it credited to him? Was he circumcised at the time, or not? No, he was not circumcised but uncircumcised! 4:11 And he received the sign of circumcision as a seal of the righteousness that he had by faith while he was still uncircumcised, so that he would become the father of all those who believe but have never been circumcised, that they too could have righteousness credited to them.

Romans 4:22-24

4:22 So indeed it was credited to Abraham as righteousness.

4:23 But the statement it was credited to him was not written only for Abraham’s sake, 4:24 but also for our sake, to whom it will be credited, those who believe in the one who raised Jesus our Lord from the dead.